package com.zatech.cgnci.project.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.Date;

/**
 * @author EDY
 * @version 1.0
 * Create by 2024/12/18 17:40
 */
@Data
@ApiModel(value = "CgnciEndorsementInsuranceNextCreateDTO")
public class CgnciEndorsementInsuranceNextCreateDTO {

    @ApiModelProperty("业务id")
    @NotNull(message = "业务id不能为空")
    private Long insuranceId;

    @ApiModelProperty("业务编号")
    @NotBlank(message = "业务编号不能为空")
    private String businessNo;

    @ApiModelProperty("批改生效日期")
    @NotNull(message = "批改生效日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private Date effectiveDate;

    @ApiModelProperty("批改申请日期")
    @NotNull(message = "批改申请日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private Date applyDate;

    @ApiModelProperty("批改类型(1-保期变更,2-涉费批改,3-非涉费批改),码表值:endorsementType")
    private String endorsementType;

}
